<div class="borde" style="background-color:#ccc; padding:5px">
    <form action="<?= site_url('/'.$pagina)?>" method="post">
        &nbsp;<?=lang('visualiza');?>
        <input type="text" name="cantidad" class="inputbox" size="5" maxlength="5" value="<?=$cantidad?>">
        <?=lang('registros');?> &nbsp;&nbsp;
        <?=lang('criterio');?>
        <input type="text" name="criterio" class="inputbox" size="15" maxlength="150" value="<?=$criterio?>">
        <input type="hidden" name="option" value="com_personal">
        <input type="hidden" name="task" value="view">
        <?=lang('ordenado');?>
        <select name="order">$arr as $key => $val
            <?php foreach($order as $key => $val): ?>
            <?php if($key==$orden_actual):?>
            <option value="<?=$key?>" selected><?=$val?></option>
            <?php else: ?>
            <option value="<?=$key?>"><?=$val?></option>
            <?php endif;?>
            <?php endforeach;?>
        </select>&nbsp;

        <?=lang('ascdec');?>
        <?php if($tipo=="asc"):?>
        <input type="radio" checked name="tipo" value="asc">
        <input type="radio" name="tipo" value="desc">
        <?php else:?>
        <input type="radio" name="tipo" value="asc">
        <input type="radio" checked name="tipo" value="desc">
        <?php endif;?>
        <input type="submit" class="inputbox" value="<?=lang('buscar');?>">&nbsp;
    </form>
</div>
                <div style="height:5px"></div><!-- separator -->

